package com.handsome.组合模式;

import java.util.ArrayList;
import java.util.List;

/**
 * @author niechun
 * @date 2023/3/1 20:39
 */
public class Department extends OrganizationComponent{

    public Department(String name, String description) {
        super(name, description);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public void setName(String name) {
        super.setName(name);
    }

    @Override
    public String getDescription() {
        return super.getDescription();
    }

    @Override
    public void setDescription(String description) {
        super.setDescription(description);
    }

    @Override
    public void print() {
        System.out.println("-------"+getName()+"----------");
    }
}
